package com.xhs.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Max;

/**
 * 搜索笔记请求DTO
 *
 * @author xhs
 */
@Data
@Schema(description = "搜索笔记请求")
public class SearchNotesRequest {

    /**
     * 手机号
     */
    @Schema(description = "手机号", example = "13800138000", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    /**
     * 搜索关键词
     */
    @Schema(description = "搜索关键词", example = "美食", required = true)
    @NotBlank(message = "搜索关键词不能为空")
    private String keyword;

    /**
     * 页数
     */
    @Schema(description = "页数", example = "1", required = true)
    @Min(value = 1, message = "页数不能小于1")
    @Max(value = 100, message = "页数不能大于100")
    private Integer page = 1;


} 